package org.senf.outerspace.ships.testcorvette;

import javax.media.opengl.GL;

import org.senf.outerspace.ships.build.IModel;
import org.senf.outerspace.ships.design.IModelBluePrint;

import com.sun.opengl.util.GLUT;

public class CorvetteBP implements IModelBluePrint {

	private String id;
	
	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String getName() {
		return "Corvette";
	}

	@Override
	public IModel build() {
		return new Corvette(this);
	}

	@Override
	public void render(GL gl) {
		gl.glTranslatef(-5, 0, 0);
		gl.glRotatef(90f, 0.0f, 1.0f, 0.0f);
		gl.glColor3f(1f,0f,0f);
		new GLUT().glutWireCone(6, 10, 15, 15);
	}
}
